package com.zy.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zy.business.domain.TbAbsence;
import com.zy.business.domain.TbAbsenceAudit;
import com.zy.business.domain.TbReportBack;
import com.zy.business.domain.vo.AbsenceDto;
import com.zy.common.core.domain.AjaxResult;


import java.util.List;

/**
 * @Description:请假管理实现类
 * @Author GIGABYTE2
 * @Date 2020/11/6
 */
public interface AbsenceService extends IService<TbAbsence> {

    AjaxResult add(TbAbsence absence);

    AjaxResult edit(TbAbsence absence);

    void sendMessage(TbAbsence absence,Long approveId, Integer type);

    String getDuration(String startTime, String endTime);

    TbAbsence getDetail(Long absenceId);

    List<TbAbsence> list(AbsenceDto absenceDto);

    int reportBack(TbReportBack reportBack);

    int editReportBack(TbReportBack reportBack);

    int approveReportBack(TbReportBack reportBack);

    AjaxResult approve(TbAbsenceAudit absenceAudit);

}
